package com.yic.module.device.controller.admin.fault.vo;

import lombok.*;

import java.math.BigDecimal;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.yic.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.yic.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 设备报修分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class FaultPageReqVO extends PageParam {

    @Schema(description = "报修单号")
    private String code;

    @Schema(description = "紧急程度")
    private Integer emergent;

    @Schema(description = "报障时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] faultTime;

    @Schema(description = "报障部门", example = "3073")
    private Long deptId;

    @Schema(description = "设备", example = "13145")
    private Long deviceId;

    @Schema(description = "工厂", example = "3728")
    private Long factoryId;

    @Schema(description = "工作中心", example = "11443")
    private Long centerId;

    @Schema(description = "工单状态", example = "2")
    private Integer status;

    @Schema(description = "开始处理时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] startTime;

    @Schema(description = "结束处理时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] endTime;

    @Schema(description = "处理时长")
    private BigDecimal duration;

    @Schema(description = "处理人")
    private Long handleUser;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
